/**
 * @file guild_module_orm.hpp
 * @date 2021/05/25 15:50
 *
 * @author harrybao (harrybao@123u.com)
 *
 * @brief 公会模块对象关系映射
 *
 * @version v1.0.0
 *
 * @copyright Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
 *
 * @par history:
 * <table>
 * <tr><th>Date                     <th>Version     <th>Author <th>Description
 * <tr><td>2021/05/25 10:05         <td>1.0.0       <td>harrybao
 * <td>创建初始版本
 * </table>
 */

#pragma once

#include "guildservicebasic.orm.h"

namespace guild_service {
namespace detail {

template <typename Module>
bool SerializeToString(const Module &module, std::string &buffer) {
  return guildservicebasic_orm::serialize(module, buffer);
}

template <typename Module>
bool DeserializeFromString(const std::string &buffer, Module &module) {
  return guildservicebasic_orm::deserialize(buffer, module);
}

}  // namespace detail
}  // namespace guild_service